﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<IList<CategoryProp>>" %>

<h5>关键属性</h5>
<div class="group_item">
    <%foreach(var item in Model.Where(c=>c.IsKeyProp).OrderBy(c=>c.SortValue)){%>
        <%Html.RenderPartial("TbAttr", item, ViewData);%>
    <%}%>
    <div class="clear"></div>
</div>

<h5>销售属性</h5>
<div class="group_item" id="goods_sale">
    <%foreach (var item in Model.Where(c => c.IsSaleProp).OrderBy(c => c.SortValue)){%>
        <div class="sale_item" pid="<%=item.Pid%>" iscolor="<%=item.IsColorProp%>">
            <%Html.RenderPartial("TbAttr", item, ViewData);%>
        </div>
    <%}%>
    <div class="clear"></div>
    <div class="suk_prop_name" style="color:blue">销售属性组合:</div>
    <div class="suk_prop_value" id="tb_portfoliomain"></div>
    <div class="clear"></div>
</div>

<h5>其他属性</h5>
<div class="group_item">
    <%foreach (var item in Model.Where(c => (!c.IsSaleProp && !c.IsKeyProp)).OrderBy(c => c.SortValue)){%>
        <%Html.RenderPartial("TbAttr", item, ViewData);%>
    <%}%>
    <div class="clear"></div>
</div>